{% extends "base.html" %}

<body>
{% block header %}
{% include "report-menu.html" %}
{% endblock %}

{% block content %}
<div class="wrap">
	{% include "tree.html" %}
	<div class="wrap_left right">
		<div class="shenqing1">
        	<h5 style="float:left;width:96%;margin-bottom:10px;">报表中心</h5>
        	<form action="/report/search/" method="post">
	        	<input type="text" name="key" class="word_in"/>
	   	    	<input type="submit" value="搜索" class="btn_search"/>
   	    	</form>
   	    	<a href="/report/add/" class="new_zeng" >创建报表</a>
		</div>
		<div class="biaoge">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="table2">
		        <tr>
			        <th width="15%">报表名称</th>
			        <th width="15%">报表模版</th>
			        <th width="15%">统计方式</th>
			        <th width="10%">发送频率</th>
			        <th width="20%">数据来源</th>
			        <th width="10%">订阅状态</th>
			        <th width="15%">操作</th>
		        </tr>
	            {% for r in lst %}
				<tr class="{%cycle g1 g2%}">
			        <td class="td_left"><a href="/report/detail?id={{r.id}}">{{r.name}}</a></td>
			        <td class="td_mid">{{r.tpl}}</td>
			        <td>{{r.statistics}}</td>
	                {% if r.freq == 7 %}
			        <td>每周</td>
	                {% else %}
			        <td>每日</td>
	                {% endif %}
			        <td>{{r.mid}}</td>
	                {% if r.status == 1 %}
			        <td>已经订阅</td>
	                {% else %}
			        <td>未订阅</td>
	                {% endif %}
			        <td>
			        	<a href="/report/edit?id={{r.id}}">编辑 </a>
	                    <a href="/report/delete?id={{r.id}}">删除 </a>
	                    <a href="/report/detail?id={{r.id}}">详情 </a>
			        </td>
		        </tr>
	            {% endfor %}
			</table>
		    <div class="page_w">
			    <div class="page_font">总共15条记录</div>
				<div class="page_r">
					<ul>
				        <li><select name="select" class="frist"><option>第1页</option></select></li>
				        <li>每页15条,共1页</li>  
				        <li><a href="#" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><ins>末页</ins><img src="/static/img/new/page_ico4.gif" /></span></a></li>
				        <li><a href="#" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><ins>下一页</ins><img src="/static/img/new/page_ico3.gif"/></span></a></li>
				        <li><a href="#" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><img src="/static/img/new/page_ico2.gif"/><ins>上一页</ins></span></a></li>
				        <li><a href="#" class="page_btn" onMouseDown="this.className='page_btn_d'"><span><img src="/static/img/new/page_ico1.gif"/><ins>首页</ins></span></a></li>
			        </ul>
				</div>
			</div>
		</div>
    </div>
</div>
{% endblock %}

</body>
</html>
